<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script src="__STATIC__/js/jquery.js"></script>
    <script src="__STATIC__/layui/layui.js"></script>
    <script type="text/javascript" src="__STATIC__/x-admin/js/xadmin.js"></script>
    <link rel="stylesheet" href="__STATIC__/x-admin/css/font.css">
    <link rel="stylesheet" href="__STATIC__/x-admin/css/xadmin.css">
    <link rel="stylesheet" href="__STATIC__/layui/css/layui.css">
</head>
<body>
<form class="layui-form" action="" id="export_info" onsubmit="return false">
    <div class="layui-form-item">
        <label class="layui-form-label">批次</label>
        <div class="layui-input-inline">
            <input type="text" id="batch" style="width: 200px" name="batch" placeholder="批次" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" id="export">导出</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
</body>
<script>
    $("#export").click(function () {
        if(!$("#batch").val()){
            layer.msg('请输入设备批次',{icon:5,time:2000});
            return
        }
        var batch = $("#batch").val();
        window.location.href = "{:url('/temporary_num/exportInfo')}?batch="+batch;
    });
</script>
</html>